package com.zxy.demo.junit.runners;

import org.junit.experimental.theories.DataPoints;
import org.junit.experimental.theories.Theories;
import org.junit.experimental.theories.Theory;
import org.junit.runner.RunWith;

/**
 * TheoriesTest2.
 * 
 * Created by zxybird on 17/5/15.
 */
@RunWith(Theories.class)
public class TheoriesTest2 {

  @DataPoints
  public static String[] names = { "Tony", "Jim" };

  @DataPoints
  public static int[] ageValue1 = { 10, 20 };

  @Theory
  public void testMethod(String name, int age) {
    System.out.println(String.format("%s's age is %s", name, age));
  }

}
